@color1: #ffec3d;
@color2: #40a9ff;

.loadingWrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
#preloader {
  position: relative;
}
#preloader:before {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: blue;
  content: '';
  position: absolute;
  background: @color2;
  -webkit-animation: preloader_before 1.5s infinite ease-in-out;
  -moz-animation: preloader_before 1.5s infinite ease-in-out;
  -ms-animation: preloader_before 1.5s infinite ease-in-out;
  animation: preloader_before 1.5s infinite ease-in-out;
}

#preloader:after {
  width: 20px;
  height: 20px;
  border-radius: 20px;
  background: blue;
  content: '';
  position: absolute;
  background: @color1;
  left: 22px;
  -webkit-animation: preloader_after 1.5s infinite ease-in-out;
  -moz-animation: preloader_after 1.5s infinite ease-in-out;
  -ms-animation: preloader_after 1.5s infinite ease-in-out;
  animation: preloader_after 1.5s infinite ease-in-out;
}

@-webkit-keyframes preloader_before {
  0% {
    -webkit-transform: translateX(0px) rotate(0deg);
  }
  50% {
    -webkit-transform: translateX(50px) scale(1.2) rotate(260deg);
    background: @color1;
    border-radius: 0px;
  }
  100% {
    -webkit-transform: translateX(0px) rotate(0deg);
  }
}
@-webkit-keyframes preloader_after {
  0% {
    -webkit-transform: translateX(0px);
  }
  50% {
    -webkit-transform: translateX(-50px) scale(1.2) rotate(-260deg);
    background: @color2;
    border-radius: 0px;
  }
  100% {
    -webkit-transform: translateX(0px);
  }
}

@-moz-keyframes preloader_before {
  0% {
    -moz-transform: translateX(0px) rotate(0deg);
  }
  50% {
    -moz-transform: translateX(50px) scale(1.2) rotate(260deg);
    background: @color1;
    border-radius: 0px;
  }
  100% {
    -moz-transform: translateX(0px) rotate(0deg);
  }
}
@-moz-keyframes preloader_after {
  0% {
    -moz-transform: translateX(0px);
  }
  50% {
    -moz-transform: translateX(-50px) scale(1.2) rotate(-260deg);
    background: @color2;
    border-radius: 0px;
  }
  100% {
    -moz-transform: translateX(0px);
  }
}

@-ms-keyframes preloader_before {
  0% {
    -ms-transform: translateX(0px) rotate(0deg);
  }
  50% {
    -ms-transform: translateX(50px) scale(1.2) rotate(260deg);
    background: @color1;
    border-radius: 0px;
  }
  100% {
    -ms-transform: translateX(0px) rotate(0deg);
  }
}
@-ms-keyframes preloader_after {
  0% {
    -ms-transform: translateX(0px);
  }
  50% {
    -ms-transform: translateX(-50px) scale(1.2) rotate(-260deg);
    background: @color2;
    border-radius: 0px;
  }
  100% {
    -ms-transform: translateX(0px);
  }
}

@keyframes preloader_before {
  0% {
    transform: translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateX(50px) scale(1.2) rotate(260deg);
    background: @color1;
    border-radius: 0px;
  }
  100% {
    transform: translateX(0px) rotate(0deg);
  }
}
@keyframes preloader_after {
  0% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(-50px) scale(1.2) rotate(-260deg);
    background: @color2;
    border-radius: 0px;
  }
  100% {
    transform: translateX(0px);
  }
}
